HC: include a missing sass function
authorJakub Steiner <jimmac@gmail.com>
Mon, 27 Apr 2015 22:33:17 +0000 (00:33 +0200)
committerJakub Steiner <jimmac@gmail.com>
Mon, 27 Apr 2015 22:33:45 +0000 (00:33 +0200)
- used in the color widget

gtk/theme/HighContrast/_drawing.scss
gtk/theme/HighContrast/gtk.css

index 330cb2e67c3fa1e0b3d0fcf7eb87c4028025367d..4cb8b29d6d55629f32acf12d53bebcb92a0b76c1 100644 (file)
@@ -1,6 +1,10 @@
 // Drawing mixins
 
 // generic drawing of more complex things
+@function _widget_edge($c:$borders_edge) {
+// outer highlight "used" on most widgets
+  @return 0 1px $c;
+}
 
 @mixin _shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
 //
index 7fec7d4f940810575ee9cccc20b4ca553c024b34..c2444252514166ce5aa25e18e3185bf83db79074 100644 (file)
@@ -2542,13 +2542,13 @@ GtkInfoBar {
  * Color Chooser *
  *****************/
 GtkColorSwatch {
-  box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), _widget_edge(); }
+  box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }
   :selected GtkColorSwatch {
     box-shadow: none; }
     :selected GtkColorSwatch.overlay, :selected GtkColorSwatch.overlay:hover {
       border-color: #fff; }
   GtkColorSwatch:selected {
-    box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), _widget_edge(); }
+    box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }
   GtkColorSwatch.top {
     border-top-left-radius: 5px;
     border-top-right-radius: 5px; }
@@ -2573,7 +2573,7 @@ GtkColorSwatch {
     border-radius: 3px; }
     GtkColorEditor GtkColorSwatch:hover {
       background-image: none;
-      box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), _widget_edge(); }
+      box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }
     GtkColorEditor GtkColorSwatch:backdrop {
       box-shadow: none; }
   GtkColorSwatch.color-dark {